package com.neuedu.mvc;

public class MVCStringUtils {

    /**
     * 获取扩展名
     * @param uri
     * @return
     */
    public static String getExt(String uri){
        String ext = uri.lastIndexOf(".")!=-1? uri.substring(uri.lastIndexOf(".")):"";
        return ext;
    }


    /**
     * 判断字符串非空
     * @param str
     * @return
     */
    public static boolean isNotEmpty(String str){
        return str!=null && str.trim().length() >0;
    }


}
